package com.FundamentalDemos.Literal;

public class LiteralDemo {
    public static void main(String[] args) {
        System.out.println('中');
        System.out.println('\n');
        System.out.println('国');
        System.out.println("This is a test!");
        System.out.println(true);
        System.out.println(false);
        System.out.println("*\t*");
        System.out.println('中');
        System.out.println(0B110);//二进制整数以0B,0b开头
        System.out.println(012);//八进制整数以0开头
        System.out.println(0X1A);//十六进制整数以0x,0X开头

        int a = 0b1101, b = 017, c = 0xAF;
        System.out.println("a=" + a + ",b=" + b + ",c=" + c);
    }
}
